home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-09-27 | 1.2 KB | 20 lines | [TEXT/CCL2] |
-
- ;;; Some general utilities for dealing with annotations
-
- ;;; Lookup an annotation on a var
-
- (define (lookup-annotation var aname)
- (lookup-annotation-1 (var-annotations var) aname))
-
- (define (lookup-annotation-1 a aname)
- (if (null? a)
- '#f
- (if (eq? aname (annotation-value-name (car a)))
- (car a)
- (lookup-annotation-1 (cdr a) aname))))
-
- ;;; This parses a string denoting a strictness property into a list
- ;;; of booleans. "S,N,S" -> (#t #f #t)
-
- (define (parse-strictness str)
- (parse-stric